<extend name="Public/base"/>
<block name="sidebar">

	<include file="plus-nav-top" />

</block>
<block name="body">


	<form class="well form-inline " method="get" action="{:U('')}">

		<div class="form-group">


			<input type="text" class="input J_date " name="starttime" value="{:I('get.starttime')}"
				   placeholder="开始时间">

			<input type="text" class="input J_date " name="endtime" value="{:I('get.endtime')}"
				   placeholder="结束时间">



		</div>





		<div class="form-group">
			<button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
				<i class="icon-search bigger-110"></i>


			</button>
			<input type="hidden" name="id" value="{:I('get.id')}">
			<if condition="$search">
				<a data-toggle="tooltip" title="清除搜索项" href="{:U('log')}"
				   class="tooltip-danger btn btn-xs btn-danger"><i class="icon-remove bigger-110"></i></a>


			</if>
			<a  class="btn btn-xs btn-info" href="{:U('daochu',array('starttime'=>I('get.starttime'),'endtime'=>I('get.endtime')))}">导出EXCEL</a>
		</div>

	</form>


	<div class="well">销售单数: <span class="red pr20">{$count|default=0} 单</span>    总金额: <span class="red pr20">￥ {$sum|default=0} </span>   分销提成: <span class="red pl20 pr20">￥ {$fen_sum|default=0}</span>(提成比例:{$myinfo.bili})</div>



		<div class="table_list">
			<table width="100%" class="table table-striped table-bordered table-hover">
				<thead>
				<tr>


					<th>订单号</th>
					<th>类型</th>
					<th>时间</th>
					<th>用户手机号</th>
					<th>金额</th>
					<th>分销提成</th>



				</tr>
				</thead>
				<tbody>

				<foreach name="list" item="vo">
					<tr>
						<td>{$vo.order_sn}</td>
						<td><switch name="vo.modal" >
							<case value="product" break="0或1">保养</case>
							<case value="chongzhi">保养</case>

						</switch></td>




						<td>{$vo.inputtime|date="Y-m-d H:i:s",###}</td>

						<td>{:substr_replace(get_username($vo["uid"]),'****',3,4)}</td>
						<td>￥{$vo.money}</td>
						<td>￥{$vo.fen_money}</td>



					</tr>
				</foreach>
				</tbody>
			</table>
		</div>
		<div class="pagination" style="margin:auto; display:block">{$Page}</div>



</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script> 

</block>

